package cn.com.dhcc.adam.se;

import java.util.Calendar;

public class PrintFormatStudy {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		   Calendar rightNow = Calendar.getInstance();
		   String s = String.format("Duke's Birthday: %1$tm %1$te,%1$tY", rightNow);
		   System.out.println(s);
		   String s2 = String.format("Duke's Birthday: %1$tm %<te,%<tY",rightNow);
		   System.out.println(s2);
		   

		   System.out.format("%1$tY-%1$tm-%1$td %1$tT", Calendar.getInstance());
	}

}
